import './styles/index.less';
import 'dayjs/locale/zh-cn';

import { ConfigProvider } from 'antd';
import zhCN from 'antd/lib/locale/zh_CN';
import { locale } from 'dayjs';
import React from 'react';
import ReactDOM from 'react-dom';

import CreateRoute from './router';

locale('zh-cn');

window.addEventListener('DOMContentLoaded', () => {
  ReactDOM.render(
    <ConfigProvider locale={zhCN}>
      <CreateRoute />
    </ConfigProvider>,
    document.getElementById('root'),
  );
});
